<?php 
set_time_limit(0);
include '../c/config.php';
 

$dbhost='121.41.208.81';
$mysqliZ = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqliZ->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqli->error);}

$query=$mysqliZ->query("select openid from z_uf where ischong is NULL group by openid having count(openid) >1 ");
$openid=array();
while ($list=$query->fetch_assoc()){
    $openid[$list['openid']]=$list['openid'];
  
}
echo count($openid);
echo "<br /><br />";
foreach ($openid as $v){
    
    $query=$mysqliZ->query("select * from z_uf where openid='".$v."' and ischong is NULL ");
    while ($list=$query->fetch_assoc()){
        echo $list['fen'];
        echo '------';
        print_r($list);
        echo "<br />";
    }
    
    echo '------------------------- end';
    echo "<br /><br />";
}